﻿<div id="news">
<h4> Phần Mềm </h4>
</div>
<?php
$limit=4;
$total=count($sp);
$current=$dp->PageCurrent();
$dau=$dp->FirstRecord($current,$limit);
$cuoi=$dp->LastRecord($current,$limit,$total);
for($i=$dau;$i<=$cuoi;$i++)
{
	$id=$sp[$i]['id'];
	$name=$sp[$i]['name'];
	$datepost=$sp[$i]['datepost'];
	$images=$sp[$i]['images'];
	$content=$sp[$i]['content'];
	$link="index.php?option=phanmem";
	$url=$link;
	$link.="&id=$id";
	$images="../hoctap/images/phanmem/".$sp[$i]['images'];
	
	
?>
  
	<div ="phanmem12">
	 
	  <div id ="pm">
	  <div id="hinh">
			<img src="<?php echo $images;?>" width="50px" height="50px"/>
			</div>
			<a class=titte2 href="<?php echo $link;?> "> -- <?php echo $name; ?></a><br>
			<div id = "date">
		   <i>Ngày Đăng :<?php echo $datepost;?></i>
		   </div>
		
		<div id ="chitiet">
		   <a href="<?php echo $link;?> "> Xem Thêm >> </a>
		 </div>
	</div>
	</div><br><br>
         <?php
   }
?>

<div id="phantrang">
<h4><?php echo $dp->Pagination($total, $current, $limit, $url);?></h4>
</div>
